const spread = [12, 5, 8, 190, 44]
const gt10 = spread.filter(item => item > 10)
console.log(gt10);
const users = [
    {
        'user': 'barney',
        "age": 36,
        active: true
    }, 
    {
        'user': 'ared',
        "age": 40,
        active: true
    }, 
    {
        'user': 'ered',
        "age": 24,
        active: false
    },
    {
        'user': 'abc',
        "age": 80,
        active: false
    }
]
const filteredUsers=users.filter(user=>user.age==40||user.age==24)
console.log(filteredUsers);